package org.example.sixteendemo;


//子类
public class Dog extends Animal {


    public void walk(){
        System.out.println("子类独有的方法");
    }


    @Override
    public void eat() {
        System.out.println("晚餐吃狗粮");
    }
}

